﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_SetUp.Roles
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class TMS_Role : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 角色名
        /// </summary>
        [Required(ErrorMessage = ("角色名不能为空"))]
        [StringLength(20)]
        public string Role_Name { get; set; }
        /// <summary>
        /// 上级名称
        /// </summary>
        [Required(ErrorMessage = ("上级名称不能为空"))]
        [StringLength(150)]
        public string Role_Superior { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        [Required(ErrorMessage = ("别名不能为空"))]
        [StringLength(100)]
        public string Role_Alias { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool Role_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Role_DateTime { get; set; } = DateTime.Now;
    }
}
